home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CDPD Public Domain Collection for CDTV 4
/
CDPD_IV.bin
/
e
/
mailinglists
/
amigae.0993sept.archive
/
000075_crash!msuvx2.m….edu!UMLANGSTON_Tue, 28 Sep 93 03:07:43 PST.msg
< prev
next >
Wrap
Internet Message Format
|
1994-05-26
|
2KB
Received: by bkhouse.cts.com (V1.16/Amiga)
id AA00000; Tue, 28 Sep 93 03:07:43 PST
Received: from msuvx2.memst.edu by crash.cts.com with smtp
(Smail3.1.28.1 #18) id m0ohXNr-0000MNC; Mon, 27 Sep 93 22:13 PDT
Received: from msuvx2.memst.edu by msuvx2.memst.edu (PMDF V4.2-14 #3869) id
<01H3GMZB1XT28Y51RN@msuvx2.memst.edu>; Tue, 28 Sep 1993 00:17:14 CST
Date: Tue, 28 Sep 1993 00:17:14 -0600 (CST)
Message-id: <01H3GMZB1XT48Y51RN@msuvx2.memst.edu>
X-VMS-To: IN%"amigae@bkhouse.cts.com"
MIME-version: 1.0
Content-type: TEXT/PLAIN; CHARSET=US-ASCII
Content-transfer-encoding: 7BIT
From: UMLANGSTON@msuvx2.memst.edu
To: amigae@bkhouse.cts.com
Subject: Read-only gadget problems
Hi folks.
I'm elbow-deep in implementing the GUI for the holographic memory system
I described earlier, and I've run into a wall. I'm trying to use the
read-only display gadgets available in 2.0 (TEXT_KIND, RKRM:Libs p.397) for
the display of status messages and the like.
However, to display any text in these gadgets after initializing them, the
OS requires that you use Gt_SetGadAttrsA(), and provide it with a pointer to:
the gadget (no problem)
the window its in (no prob)
NIL (no prob)
a taglist of the attributes to change (no prob...sorta)
Everything's fine, except for the taglist. Because TEXT_KIND requires a
pointer to a string containing the text to display. E doesn;t like someone
declaring pointers to strings. Well, I set up an OBJECT with an array of chars
(right out of the E manual), and then set a pointer to this in a def statement.
Set this var to contain the string, pop it in the Gt_Set...A() function,
and.......nothing.
Could someone post a short example of:
Setting up/creating an empty TEXT_KIND gadget,
then, successfully displaying a string in it using Gt_Set...A().
Much appreciated,
mark
P.S. - Perhaps we should declare ourselves 'experts' in some certain aspect
of E or programming in general, so those with questions can get good
answers, and those with knowledge can supply them. I'll go first:
No expertise as such in E, but anyone needing any answers concerning
matrix manipulations, nonlinear systems, neural nets, artificial intelligence
artificial life, cognitive psychology, expert systems, prolog, lisp,
parallel processing, etc. (these things may come in handy as general
algorithmic helps), I'm yer guy.
P.P.S. - I also do cutlefish. ;)